package com.auto.admin.service.impl;

import com.auto.admin.entity.Module;
import com.auto.admin.mapper.ModuleMapper;
import com.auto.admin.service.ModuleService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * @author liangshf
 * @Description: 项目模块 服务实现类
 * @date 2018-06-20
 */
@Service
public class ModuleServiceImpl extends ServiceImpl<ModuleMapper, Module> implements ModuleService {

	@Override
	public Module getByCode(String code) {
		QueryWrapper<Module> paramWrapper = new QueryWrapper<>();
		paramWrapper.eq("code", code);
		return baseMapper.selectOne(paramWrapper);
	}
}
